In [1]:
a = input("Ingrese el primer numero: ")
In [2]:
b = input("Ingrese el segundo numero: ")
In [3]:
c = input("Ingrese el tercer numero: ")
In [4]:
print(a,b,c)
In [5]:
a > b
Out[5]:
In [6]:
a > c
Out[6]:
In [9]:
a = int(a)
In [10]:
type(a)
Out[10]:
In [14]:
b, c = int(b), int(c)
In [15]:
a > c
Out[15]:
In [30]:
if a>b:
if (a > c):
print("El mayor es ", a)
else:
print("El mayor es ", c)
else:
if b > c:
print("El mayor es ", b)
else:
print("El mayor es ", c)
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: